ACFWF\Models\Objects\BOGO\Calculation B

Total Complexity 87
Dependencies 3
Dependents 1
Total lines 790
Lines of code 287
Logical lines of code 140
Comment lines 379
Methods 31
Properties 9

Methods 31

Method Rating Maintainability Complexity Lines of code
verify_triggers()
A
47 9 36
append_entry()
S
57 8 15
verify_deals()
S
49 6 32
update_entry()
S
59 7 13
is_calculated_from_session()
S
59 7 13
get_sorted_cart_items_by_price()
S
54 5 19
get_all_entries()
S
61 5 13
__construct()
S
61 5 12
process_allowed_deals_data()
S
59 3 16
get_entries_by_cart_item()
S
63 3 11
calculate_cart_item_spare_quantity()
S
64 3 9
get_cart_session_hash()
S
59 2 14
get_entries_by_id_and_coupon()
S
71 2 5
get_entries_by_coupon()
S
71 2 5
clear_temp_entries()
S
65 2 9
confirm_matched_triggers()
S
74 2 5
get_instance()
S
71 2 6
done_calculation()
S
81 1 3
is_calculation_done()
S
82 1 3
_generate_entry_key()
S
74 1 4
_get_bogo_deal_for_coupon()
S
80 1 3
set_bogo_deal()
S
81 1 3
add_notice()
S
69 1 7
get_bogo_coupon_code()
S
82 1 3
get_bogo_deal()
S
82 1 3
get_all_bogo_deals()
S
74 1 4
get_current_bogo_deal()
S
74 1 4
get_notices()
S
82 1 3
clear_session_data()
S
75 1 4
set_session_data()
S
68 1 7
is_item_valid()
S
79 1 3